package com.demo.sbexample.utils;

import com.demo.sbexample.entity.Result;

public class ResultUtil {


    public static Result success(Object object) {
        return new Result(0, "成功", object);
    }

    public static Result success() {
        //return success(null);
        return success(null);

    }

    public static Result error(Integer code, String msg) {
        return new Result(code, msg);
    }


}
